package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.BusRecordDao;
import com.dstz.demo.core.manager.BusRecordManager;
import com.dstz.demo.core.model.BusRecord;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 乘车记录表 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2020-02-21 21:20:59
 */
@Service("busRecordManager")
public class BusRecordManagerImpl extends BaseManager<String, BusRecord> implements BusRecordManager {
	@Resource
	private BusRecordDao busRecordDao;


	public List<BusRecord> findByUserId(Integer userId) {
		List<BusRecord> busRecords = busRecordDao.findByUserId(userId);
		return busRecords;
	}
}
